﻿using System;
using System.Linq;
using System.Windows;
using FrameWork.Services;
using System.Windows.Data;
using System.Globalization;

namespace AncheStart.Converter
{
    public class BoolToVisableConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var visable = (bool)value;
            return visable ? Visibility.Visible : Visibility.Collapsed;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return null;
        }
    }
}